From e08710dafc016534e8d4e24639055754619bea09 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 2 Nov 2020 13:53:17 +0000 Subject: [PATCH] run-with-locales: Normalize utf8 to UTF-8 without using SUPPORTED file --- debian/run-with-locales | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/run-with-locales b/debian/run-with-locales index 5adb42d15c..a63d22bdeb 100755 --- a/debian/run-with-locales +++ b/debian/run-with-locales @@ -84,7 +84,15 @@ generate () { return fi - charset=$(sed -ne "s/^$locale //p" /usr/share/i18n/SUPPORTED) + case "$locale" in + (*.utf8) + charset="UTF-8" + ;; + + (*) + charset=$(sed -ne "s/^$locale //p" /usr/share/i18n/SUPPORTED) + ;; + esac if [ -z "$charset" ]; then echo "$me: $locale not found in /usr/share/i18n/SUPPORTED" >&2 -- 2.30.2